package com.java.collection;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class PropertiesTest {

	public static void main(String[] args)  {
		Properties pro=new Properties();
		try {
			//pro.load(new FileInputStream("config"));
			pro.load(PropertiesTest.class.getResourceAsStream("/config.properties"));
		} catch (FileNotFoundException e) {
			e.getStackTrace();
		} catch (IOException e) {
			e.getStackTrace();
		}
		System.out.println("==o(≧v≦)o==ServerIp"+":"+pro.getProperty("ServerIp"));
		System.out.println("==o(≧v≦)o==Port"+":"+pro.getProperty("Port"));;
	}

}
